/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 销货清单查询 (OEM)

// 销货清单查询	/ttFiInvoice/querySalesListForFactory
export const queryList = (params) => axios.post(`${SERVER.RETAIL}/ttFiInvoice/querySalesListForFactory`, params)

// 明细查询 /ttFiInvoice/salesListDetail
export const getDetail = (params) => axios.get(`${SERVER.RETAIL}/ttFiInvoice/salesListDetail`, {
  params
})
// 销货清单查询 导出	/ttFiInvoice/querySalesListForFactoryExcel
export const exportExcel = (params) => axios.post(`${SERVER.RETAIL}/ttFiInvoice/querySalesListForFactoryExcel`, params, {
  responseType: 'blob'
});

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
